package com.myway.common.ibe;

import com.travelsky.ibe.client.pnr.DETR;
import com.travelsky.ibe.client.pnr.DETRFoidResult;
import com.travelsky.ibe.client.pnr.DETRResult;
import com.travelsky.ibe.client.pnr.DETRTKTResult;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

/**
 * Created by yufei on 2017/11/8.
 * 获取客票状态
 */
@Slf4j
public class DETRCommand extends BaseIBECommand {
    @Override
    public void execute(Map<String, Object> params) {
        //1.获取电子客票号
        String ticketNo = (String) params.get("ticketNo");
        //连接IBE系统，使用指令DETR
        DETR detr = new DETR();
        this.configIBEClient(detr);
        DETRTKTResult result = null;
        try{
            result = detr.getTicketInfoByTktNo(ticketNo);
        }catch (Exception e){

        }

    }
}
